package net.osweb.core.tools.dto;

import java.io.File;
import java.io.InputStream;

/**
 * 
 * @author 孟博
 * 
 */
public class FtpDto {
	private String fileName;

	private File file;
	
	private InputStream in;

	private String filePath;
	
	private String appPath;
	
	private String userName;

	private String uuid;
	
	@SuppressWarnings("unused")
	private String url;

	public String getUrl() {
		//g2s/img/1/图片名_s1.jpg
		return this.appPath+"/"+this.filePath+"/"+this.uuid+"/"+this.fileName;
//		return this.filePath+"/"+this.userName+"/"+this.uuid+"/"+this.fileName;
//		return "ftp://"+FileConfig.getInstance().getIp()+"/" +FileConfig.getInstance().getHttpPath()+"/"+
//			this.filePath+"/"+this.userName+"/"+this.uuid+"/"+this.fileName;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public InputStream getIn() {
		return in;
	}

	public void setIn(InputStream in) {
		this.in = in;
	}

	public String getAppPath() {
		return appPath;
	}

	public void setAppPath(String appPath) {
		this.appPath = appPath;
	}
	
}
